package com.walle.concurrenttest.pattern.singlethreadexecute;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.pattern.singlethreadexecute
 * @Description: ${todo}
 * @date 2019/2/18 10:49
 */
public class GateTest {

    public static void main(String[] args) {
        Gate gate = new Gate();

        Thread user1 = new Thread(new UserThread("张三",gate));
        Thread user2 = new Thread(new UserThread("李四",gate));
        Thread user3 = new Thread(new UserThread("王五",gate));

        user1.start();
        user2.start();
        user3.start();
    }
}
